#!/bin/bash
num=`ping -c5 192.168.89.10|grep packet|awk -F "[,]" '{print $3}'|cut -d % -f1`
if [ $num -ge 50 ];then
   echo "192.168.89.10已断开"
else
   echo "192.168.89.10正常"
fi
